package com.ylxn.sqlSession;

import com.ylxn.pojo.Configuration;

public class DefaultSqlSessionFactory implements SqlSessionFactory{

    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    public SqlSession openSession(){
        DefaultSqlSession sqlSession = new DefaultSqlSession(configuration);
        return sqlSession;
    }
}
